<script setup lang="ts">
import MusicCover from "@/components/Screen/FooterMusicCover.vue";
import FooterMusicInfo from "@/components/Screen/FooterMusicInfo.vue";
import FooterMusicControls from "@/components/Screen/FooterMusicControls.vue";
import FooterMusicTime from "@/components/Screen/FooterMusicTime.vue";
import FooterMusicOptions from "@/components/Screen/FooterMusicOptions.vue";
import PlayerContext from "@/components/player/PlayerContext.vue";

//const emit = defineEmits(['update:OpenPlaylist'])

// const handlePlaylistOpen = () => {
//   emit('update:OpenPlaylist')
// }

</script>

<template>
  <div class="footer">
    <PlayerContext />
    <div class="footer-wrapper">
      <div class="info">
        <MusicCover></MusicCover>
        <FooterMusicInfo></FooterMusicInfo>
      </div>
      <div class="footer-controls">
        <FooterMusicControls></FooterMusicControls>
      </div>
<!--      <FooterMusicOptions @update:OpenPlaylist = handlePlaylistOpen></FooterMusicOptions>-->
      <FooterMusicOptions></FooterMusicOptions>
    </div>

  </div>
</template>

<style scoped>
.footer{
  display: flex;
  height: 100%;
  width: 100%;
  flex-direction: column;
  padding: 10px 0 10px 0;
  position: relative;
}

.footer-wrapper{
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-controls{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.info{
  display: flex;
}
</style>